<template>
	<view class="main">
		<uni-indexed-list :options="options" @click="select"></uni-indexed-list>
	</view>
</template>

<script>
import city from '@/lib/js/city';
import { goPage } from '@/lib/js/utils';
export default {
	data() {
		return {
			options: city
		};
	},
	methods: {
		select(e) {
			uni.setStorageSync(`city_${this.$route.query.redirect}`, e.item.name);
			uni.navigateBack();
		}
	}
};
</script>

<style lang="scss"></style>
